package com.stedu.mall.common.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {
    //ID
    private String id;
    //账户ID
    private Integer userId;
    //订单时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //快递单号
    private String express;
    //支付方式
    private Integer payType;
    //地址ID
    private Integer addrId;
    //地址
    private String addrDetail;
    //状态
    private Integer status;
    //地址信息
    private Addr addr;
    //账户信息
    private User user;
    //账户名称
    private String username;
    //联系人
    private String contact;
    //订单的详情
    private List<OrderDetail> orderDetails;
}
